import {generateMeta} from '@/common/consts/component-meta';
import {DATASOURCE_TYPE, generateSelectionDict} from "@/common/consts/datasource-types";
import countryData from './country';
export default {
  componentConfig: {
    name: '国籍',
    customName: 'select_JCK18LBm',
    type: 'select',
    options: {
      myCustomSetter: '3',
      defaultValue: [],
      disabled: false,
      clearable: false,
      placeholder: '请选择',
      required: false,
      requiredMessage: '',
      validatorCheck: false,
      validator: '',
      showLabel: false,
      isWidgetWidth: false,
      width: 100,
      remote: DATASOURCE_TYPE.STATIC_DATA,
      remoteOption: {
        remoteDict: generateSelectionDict()
      },
      remoteFunc: '',
      remoteOptionSource: '',
      remoteOptions: [],
      options: countryData,
      // filterable: true,
      props: {
        value: 'value',
        label: 'label'
      },
      customClass: '',
      labelWidth: 100,
      isLabelWidth: false,
      hidden: false
    },
    meta: generateMeta({
      column_format: 'TEXT', // 字段格式
      max_length: 256 // 最大长度,
    })
  },
  componentMap: [
      // 这里只写自定义的属性名，用单引号包括，若无自定义属性则设置空数组，不可删除componentMap属性！
      'myCustomSetter'
  ]
};
